package com.zy.qudadid.utils;

/**
 * Created by ASUS on 2017/2/20.
 */

public class AMapUtil {

    public static String getFriendlyTime(int second) {
        if (second > 3600) {
            int hour = second / 3600;
            int miniate = (second % 3600) / 60;
            return hour + "h" + miniate + "min";
        }
        if (second >= 60) {
            int miniate = second / 60;
            return miniate + "min";
        }
        return second + "s";
    }
}
